<?php
require_once('../../classes/Student.php');
$student = new Student;


if(!empty($_POST['lname'])AND !empty($_POST['fname'])
   AND !empty($_POST['mi'])
   AND !empty($_POST['gender'])){
     $lname = ucwords(strtolower($_POST['lname']));
     $fname = ucwords(strtolower($_POST['fname']));
     $mi = ucwords(strtolower($_POST['mi']));
     $gender = ucwords(strtolower($_POST['gender']));
        $student->addStudent($fname,$lname,$mi,$gender);
}


header('location:../../index.php');

?>